<%@page import="com.Tramite.Model.Usuario"%>
<%@page import="com.Tramite.Model.DocumentoEntrada"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Untitled Page</title>
        <meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">

        <script type="text/javascript" src="jquery/jquery-1.js"></script>
        <link href="jqueryTablaDocumento/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="jqueryTablaDocumento/tablecloth.js"></script>
        <style type="text/css">
            #NavigationBar1 ul.navbar
            {
                list-style: none;
                margin: 0;
                padding: 0;
            }
            #NavigationBar1 ul.navbar li
            {
                height: 26px;
                width: 158px;
                margin: 0px 0px 4px 0px;
                vertical-align: bottom;
            }
            #NavigationBar1 ul.navbar li a
            {
                display: block;
                position: relative;
            }
            #NavigationBar1 ul.navbar li a img
            {
                position: absolute;
                z-index: 1;
                border-width: 0px;
            }
            #NavigationBar1 ul.navbar li span
            {
                display: block;
                height: 26px;
                width: 158px;
                position: absolute;
                z-index: 2;
            }
        </style>
        <style type="text/css">
            #TabMenu1
            {
                text-align: left;
                margin: 0px 0 1px 0;
                font-family: Arial;
                font-size: 16px;
                font-weight: normal;
                list-style-type: none;
                padding: 14px 0px 3px 10px;
            }
            #TabMenu1 li
            {
                display: inline;
            }
            #TabMenu1 a:link.active, #TabMenu1 a:visited.active, #TabMenu1 a:hover.active
            {
                border-bottom: 1px solid #F7F9FC;
                background-color: white;
                color: #FFFFFF;
                position: relative;
                padding-top: 3px;
                font-weight: normal;
                text-decoration: none;
            }
            #TabMenu1 a:link, #TabMenu1 a:visited
            {
                padding: 3px 4px;
                border: 1px solid #FFFFFF;
                background-color: #FFFFFF;
                color: #1C3B69;
                margin-right: 0px;
                text-decoration: none;
                border-bottom: none;
            }
            #TabMenu1 a:hover
            {
                background: #F7F9FC;
                color: #000000;
                font-weight: normal;
                text-decoration: none;
            }
        </style>
        <script type="text/javascript">
            $(document).ready(function()
            {
                $("#NavigationBar1 .navbar a").hover(function()
                {
                    $(this).children("span").hide();
                }, function()
                {
                    $(this).children("span").show();
                })
            });
        </script>
    </head>
    <body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
        <%--menus principales--%>

        <div style ="position:absolute;left:10%;top:37%;width:400px;height:90px;z-index:2 " >
            <span style="color:#1E4D80;font-family:Arial-Black;font-size:26px;"> Bienvenido :  ${nombreUsuario}  ${apellidoUsuario}   </span> 

        </div>
        <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
            <TR>
                <TD COLSPAN=4 ROWSPAN=1>
                    <IMG SRC="images/arequipa.png" WIDTH=100%    HEIGHT=200 ALT=""></TD>

                <TD COLSPAN=4 ROWSPAN=1>
                    <IMG SRC="images/logo.png" WIDTH=100% HEIGHT=200 ALT=""></TD>
                <TD COLSPAN=4 ROWSPAN=1>
                    <IMG SRC="images/arequipa.png" WIDTH=100% HEIGHT=200 ALT=""></TD>
            </TR>

        </TABLE>
        <div id="NavigationBar1" style="position:absolute;left:10%;top:53%;width:158px;height:90px;z-index:2">
            <ul class="navbar">
                <li><a href="recibidostemp.jsp?nombreU=${nombreUsuario}&apellidoU=${apellidoUsuario}"><img alt="" src="images/img0001_over.gif"><span><img alt="" src="images/img0001.gif"></span></a></li>
                <li><a href=""><img alt="" src="images/img0002_over.gif"><span><img alt="" src="images/img0002.gif"></span></a></li>
                <li><a href=""><img alt="" src="images/img0003_over.gif"><span><img alt="" src="images/img0003.gif"></span></a></li>
            </ul>
        </div>
        <div id="wb_TabMenu1" style="margin:0;padding:0;position:absolute;left:30%;top:43%;width:558px;height:42px;text-align:left;z-index:3;">
            <ul id="TabMenu1">
                <li><a href="nuevodocumento.jsp"> Nuevo     </a></li>
                <li><a href="#"> Eliminar  </a></li>
                <li><a href="#"> Aumentar Descripcion </a></li>
                <li><a href="#"> Cambiar de Estado    </a></li>
                <li><a href="principalUsuariotemp.jsp?nombreU=${nombreUsuario}&apellidoU=${apellidoUsuario}">  Principal  </a></li>
            </ul>
        </div>

        <div style ="position: absolute;top:42%;left:0%;width: 100%">
            <IMG SRC="images/layout_24.gif" WIDTH=100%    HEIGHT=50 ALT="">

        </div>                
        <div style ="position: absolute;top:35%;left:0%;width: 100%">
            <IMG SRC="images/layout_24.gif" WIDTH=100%    HEIGHT=50 ALT="">

        </div>                


            
        <div style ="width:800px;height:200px;position:absolute; top:50%;left:25%">      
            <table cellspacing="0" cellpadding="0" style="cursor:pointer">			
                <tr >				
                    <th style ="width:15px; text-align:center;" >Leidos</th>
                    <th style ="width:50px;text-align:center; ">Codigo</th>
                    <th style ="width:120px;text-align:center;">Asunto</th>
                    <th style ="width:250px;text-align:center;">Remitente</th>
                    <th style ="width:120px;text-align:center;">Estado</th>
                    <th style ="width:80px;text-align:center;">Fecha</th>
                </tr>
                
                  
                
                					
            </table>
            <%
            
            Usuario nuevo = new Usuario("","");
            String nombre = (String)request.getAttribute("nombreUsuario");
            String apellido = (String)request.getAttribute("apellidoUsuario");
   
            nuevo.setNombre(nombre);
            nuevo.setApellido(apellido);
            
                DocumentoEntrada documentos = new DocumentoEntrada ();
                ArrayList<DocumentoEntrada> respuesta = documentos.conseguirConsulta(nuevo);
                
                for (int i=0;i<respuesta.size();i++)
                {
                    out.println(respuesta.get(i).getAsuntoDoc());
                }
            
        //ArrayList <DocumentoEntrada> List = (ArrayList<DocumentoEntrada>)(request.getAttribute("documentos")); 

%>

    
            
        </div>
        
            
    </body></html>
